home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form2
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Open A Hyperlink On Load"
- ClientHeight = 705
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3090
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 705
- ScaleWidth = 3090
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "E&xit"
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 2895
- End
- Attribute VB_Name = "Form2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- End Sub
- Private Sub Form_Load()
- Dim Scr_hDC As Long
- Dim DocName
- Scr_hDC = GetDesktopWindow()
- DocName = "www.vb.com"
- StartDoc = ShellExecute(Scr_hDC, "Open", DocName, "", "C:\", SW_SHOWNORMAL)
- End Sub
-